package com.ls.lserp.modules.setting.dao;


import com.ls.lserp.common.persistence.CrudDao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.dbaccess.Entity.StyleQualityControlEntity;
import com.ls.lserp.modules.order.entity.FitProperty;
import com.ls.lserp.modules.setting.entity.CheckQualityEntity;
import com.ls.lserp.modules.setting.entity.OperatingEntity;

import java.util.List;

@MyBatisDao
public interface CheckQualityDao extends CrudDao<CheckQualityEntity>{
	
	// 获取 相应质检工序的质检项目集
	public List<CheckQualityEntity> findQualityItemList(CheckQualityEntity checkQualityEntity);
	// 获取 所有设置的质检工序的质检项目
	public List<CheckQualityEntity> findAllSetItem(CheckQualityEntity checkQualityEntity);
	// 获取 所有标准质检项目
	public List<CheckQualityEntity> findAllQualityItem(CheckQualityEntity checkQualityEntity);
	// 工序list
	public List<OperatingEntity> selectValueNameCn();
	// 插入关联表数据
	public void insertOperating(CheckQualityEntity checkQualityEntity);
	// 删除工序对应的项目（关联表）
	public void deleteOperating(CheckQualityEntity checkQualityEntity);
	// 逻辑删除标准质检项目数据
	public void deleteItem(CheckQualityEntity checkQualityEntity);
	// 根据code获取项目数据
	public CheckQualityEntity getItemByCd(CheckQualityEntity checkQualityEntity);
	// 获取量体信息
	public FitProperty getFitInfo(CheckQualityEntity checkQualityEntity);
	// 插入新增款式质检信息数据
	public void insertStyleQualityData(List<StyleQualityControlEntity> styleQualityControlList);
	// 逻辑删除款式质检信息数据
	public void deleteStyleQualityData(CheckQualityEntity checkQualityEntity);
	// 获取订单项目数据
	public List<StyleQualityControlEntity> findOrderItemData(CheckQualityEntity checkQualityEntity);
	
}